<div class="pagination">
    <!-- Link para a primeira página -->
    <?php if (isset($this->previous)): ?>
        <a class="current page_ajx" title="Primeira Página" page='<?php echo $this->first; ?>' href="javascript:void(0);">&laquo; Primeira</a>|
    <?php else: ?>
        <a class="current page_ajx" title="Primeira Página" page='<?php echo $this->first; ?>' href="javascript:void(0);">&laquo; Primeira</a>|
    <?php endif; ?>

    <!-- Links numerados -->
    <?php foreach ($this->pagesInRange as $page): ?>
        <?php if ($page != $this->current): ?>
            <a class="numberPage page_ajx" title="<?php echo $page; ?>" page='<?php echo $page; ?>' href="javascript:void(0);"><?php echo $page; ?></a>|
        <?php else: ?>
            <a class="SetNumberPage page_ajx" title="<?php echo $page; ?>" page='<?php echo $page; ?>' href="javascript:void(0);"><?php echo $page; ?></a>|
        <?php endif; ?>
    <?php endforeach; ?>

    <!-- Última página -->
    <?php if (isset($this->next)): ?>
        <a class="current page_ajx" title="Última Página" page='<?php echo $this->last; ?>' href="javascript:void(0);">Última &raquo;</a>
    <?php else: ?>
        <a class="current page_ajx" title="Última Página" page='<?php echo $this->last; ?>' href="javascript:void(0);">Última &raquo;</a>
    <?php endif; ?>
</div>